package com.cosmo.prototype.demo03;

public class Student implements Cloneable{
    private String studentName;
    private String schoolName;

    public Student(String studentName, String schoolName) {
        this.studentName = studentName;
        this.schoolName = schoolName;
    }



    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }





    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }


    @Override
    public String toString() {
        return "Stick{" +
                "studentName='" + studentName + '\'' +
                ", schoolName='" + schoolName + '\'' +
                '}';
    }
}
